package org.rujue.modules.sys.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.checkerframework.checker.formatter.qual.Format;
import org.hibernate.validator.constraints.Length;

import org.rujue.common.persistence.DataEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Date;
import java.util.List;

/**
 * 通知公告Entity
 * @author Mr.xu
 * @version 2023-11-14
 */
@Getter
@Setter
public class SysNotice extends DataEntity<SysNotice> {
	
	private static final long serialVersionUID = 1L;
	/** 名称 */
	private String name;
	/** 内容 */
	private String content;
	/** 类型 */
	private String type;
	/** 显示日期 */
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date showDate;
	/** 附件表对象 */
	private SysFile sysFile;
	/**	附件原型对象 */
	private MultipartFile file;

	private List<SysFile> sysFileList;

	public SysNotice() {
		super();
	}

	public SysNotice(String id){
		super(id);
	}
}